Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | window.magicMatcherUtil = window.magicMatcherUtil || {}; |
||
25 | window.magicMatcherUtil.handleFailedAjax = function handleFailedAjax(jqXHR) { |
||
26 | 'use strict'; |
||
27 | |||
28 | var HIGHEST_OK_STATUS = 206; |
||
29 | window.magicMatcherUtil.showAjaxMessages(jqXHR.responseJSON); |
||
30 | if (jqXHR.status && jqXHR.status > HIGHEST_OK_STATUS) { |
||
31 | console.error(jqXHR.status + ' ' + jqXHR.statusText); |
||
32 | } |
||
33 | }; |
||
34 | |||
35 |